from django.contrib import admin

# Register your models here.
from backend.models import User, Project, Performance


class UserAdmin(admin.ModelAdmin):
    list_display = ('username', 'last_name', 'first_name', 'is_active', 'is_staff', 'date_joined', 'last_login')


admin.site.register(User, UserAdmin)


class ProjectAdmin(admin.ModelAdmin):
    list_display = ('serial', 'title', 'head_user', 'total_number', 'start_date', 'end_date')


admin.site.register(Project, ProjectAdmin)
admin.site.site_title = "管理后台"
admin.site.site_header = "管理后台"
